//
//  JiaYuanEncrypt.h
//  Yuan
//
//  Created by Sang HsiuJane on 7/5/11.
//  Copyright 2011 JiaYuan. All rights reserved.
//

#import <Foundation/Foundation.h>


@interface JiaYuanEncrypt : NSObject {
    
}
// + (NSString *)hashedISU;
+ (NSString *)md5:(NSString *)str;
+ (NSString*)sha1Hash:(NSData *)data;
+ (NSString*)md5Hash:(NSData *)data;

+(NSString *)AES128Encrypt:(NSString *)plainText key:(NSString *)key;
+(NSString *)AES128Decrypt:(NSString *)encryptText key:(NSString *)key;

+ (NSData *)AES256EncryptWithKey:(NSData *)data key:(NSString *)key;
+ (NSData *)AES256DecryptWithKey:(NSData *)data key:(NSString *)key;

+ (NSString *)currentMachine;

+ (BOOL)isJailbreak;
+ (NSString *)jbParam;
@end
